package com.css.fxfzxczh.modules.map.entity;

import com.css.fxfzxczh.base.annotation.EntityValue;
import com.css.fxfzxczh.base.annotation.Transform;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/*灾区范围（灾区范围页面）*/
@Data
public class DisasterSeismicInfluence implements Serializable {
    /**
     * 主键
     */
    private String siId;

    /**
     * 事件ID（外键）
     */
    private String xsemId;

    /**
     * 面积
     */
    @EntityValue(type = "浮点型", must = "否", name ="面积" , desc ="505.28" )
    @Transform
    private BigDecimal area;

    /**
     * 地震烈度
     */
    @EntityValue(type = "字符型", must = "否", name ="地震烈度" , desc ="VI度(6度)" )
    @Transform
    private String intensity1;

    /**
     * 地震烈度
     */
    @EntityValue(type = "字符型", must = "否", name ="地震烈度" , desc ="VI" )
    @Transform
    private String intensitys;

    /**
     * 地震烈度
     */
    @EntityValue(type = "字符型", must = "否", name ="地震烈度" , desc ="6" )
    @Transform
    private String intensity;

    private String delFlag;//0未删除 1已删除

    private String createUser;//创建人ID

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;//创建时间

    @Transform
    private String geom; // 空间数据

    private static final long serialVersionUID = 1L;
}
